[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
getfatd() Get File Allocation Table Information
#include <dos.h>
void getfatd(fatblkp);
struct fatinfo *fatblkp; Pointer to structure
getfatd() gets information from the file allocation table for the
default drive (0). The information is stored in the 'fatinfo'
structure pointed to by 'fatblkp'. The 'fatinfo' structure is
defined as:
struct fatinfo {
char fi_sclus; /* Sectors per cluster */
char fi_fatid; /* The FAT id byte */
int fi_nclus; /* Number of clusters */
int fi_bysec; /* Bytes per sector */
};
Returns: Nothing
Portability: MS-DOS only.
-------------------------------- Example ---------------------------------
The following statements print the file allocation table ID for the
default block.
#include <stdio.h> /* for printf */
#include <dos.h> /* for getfatd and struct fatinfo */
main()
{
struct fatinfo finfo;
getfatd(&finfo);
printf("The FAT ID for the default drive is %d\n",
finfo.fi_fatid);
}
See Also:
getdfree()
getfat()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson